package com.sprucetec.live.utils;

public class McqParseUtil {

    public static String toTrueJSON(String message){
        String[] jsons =message.split("\":");
        StringBuffer sb =new StringBuffer();
        for(int i=0;i<jsons.length;i++){
            if(!jsons[i].trim().startsWith("{")&&!jsons[i].trim().startsWith("[")&&!jsons[i].trim().startsWith("\"")){
                jsons[i]="\""+jsons[i].split(",")[0]+"\""+","+jsons[i].split(",")[1];
                sb.append("\":"+jsons[i]);
            }else{
                if(i==0){
                    sb.append(jsons[i]);
                }else{
                    sb.append("\":"+jsons[i]);
                }
            }
        }
        return sb.toString();
    }
}
